package interfaces;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class MainWindow extends JFrame
{
	public MainWindow()
	{
		super("Guess people");
		this.setSize(600,480);
		this.changeScreen(new mainMenuScreen(this));
		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setLocationRelativeTo(null);
		this.setVisible(true);	
	}
	public void changeScreen(JPanel screen)
	{
		this.getContentPane().removeAll();
	    this.setContentPane(screen);	
	    this.getContentPane().setVisible(false);
	    this.getContentPane().setVisible(true);
	}
}
